package com.itheima.mp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.mp.domain.dto.PageDTO;
import com.itheima.mp.domain.po.User;
import com.itheima.mp.domain.vo.UserVO;
import com.itheima.mp.query.UserQuery;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: XJH
 * @Description: TODO
 * @Date: 2025/6/13 20:28
 * @Version: 1.0
 */

public interface Userservice extends IService<User> {

    void deductBalance(Long id, Integer money);


    List<User> queryUsers(String name, Integer status, Integer minBalance, Integer maxBalance);


    UserVO queryUserandAddress(Long id);

    List<UserVO> queryUserandAddressByIds(List<Long> ids);

    PageDTO<UserVO> queryUserPage(UserQuery userQuery);
}
